//
//  ActPayrollCalculatorFeeViewController.h
//  ActSistant
//
//  Created by Loan Dinh on 2/27/13.
 //

#import <UIKit/UIKit.h>
#import "NavigationView.h"

#define kLocalNavigationHeigh 44
#define kLocalTableHeaderHeigh 30
#define kLocalTitleHeight 44
#define kLocalTextFieldHeigh 44
#define kLocalTextFieldOriginX 20
#define kLocalTextFieldWidth 280
#define kLocalAddButtonHeigh 45
#define kLocalAddButtonWidth 300
#define kLocalAddButtonOriginX 10
#define kLocalPaddingView 10
#define kLocalSegmentHeigh 44
#define kLocalSegmentWidth 250
#define kLocalSegmentOriginX 50

typedef enum ActPayrollCaculatorType{
    ActPayrollCaculatorTypeFree,
    ActPayrollCaculatorTypeCustomsAllowance
}ActPayrollCaculatorType;
@class AtcPayrollCalculationFeeCellWrapper;
@interface AtcPayrollCalculationFeeCellWrapper : NSObject
@property (nonatomic, retain) NSString* cellTitle;
@property (nonatomic, retain) NSString* cellSubtitle;
@property (nonatomic, retain) UILabel* celAccessory;
-(id)initWithTitle:(NSString*)title andSubtitle:(NSString*)subtitle withAccessory:(NSString*)accessText;
@end
@interface ActPayrollCalculatorFeeViewController : UIViewController<UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate>
{
     UITableView *_tableView;
     UIView* _firstView;
     UIView* _secondView;
    UISegmentedControl *_segmentControl;
    NSMutableArray *_tableData;
    UIButton *addButton;
}
-(id)initWithType:(ActPayrollCaculatorType)type;
-(IBAction)doSegmentControlChanged:(id)sender;
-(IBAction)doAdd:(id)sender;
-(IBAction)doBack:(id)sender;
@property (retain, nonatomic) IBOutlet NavigationView *navigationView;
@end
